package de.preamp.clients.java.data;

import java.io.IOException;

import org.json.JSONException;

/**
 * An interface defining a single method for Items that represent a server state
 * and should be able to be updated to the current server state.
 * 
 * @author André Stannek
 * @version 2009-08-12
 */
public interface Updatetable
{
    /**
     * Causes an Object to update its relevant state to current state on the
     * server library.
     * 
     * @throws IOException
     *             if update failed because the server conenction was impossible
     * @throws JSONException
     *             if update failed because the server returned a broken result
     */
    void update() throws JSONException, IOException;
}
